home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18037 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.9 KB

  1. Path: news.sprintlink.net!datalytics!usenet
  2. From: Rob Stewart <stew@datalytics.com>
  3. Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
  4. Subject: Re: Ada 95 vs C++ (was: Young programmers read me.)
  5. Date: Thu, 18 Apr 1996 12:45:16 -0400
  6. Organization: Datalytics, Inc
  7. Message-ID: <3176719C.61B@datalytics.com>
  8. References: <4icpp9$7hr@barad-dur.nas.com> <4imqe4$cj3@ping1.ping.be> <1996Mar23.224853.116513@kuhub.cc.ukans.edu> <4j52hn$ikb@news.ios.com> <Pine.OSF.3.91.960403112207.17337H-100000@bud.cc.swin.edu.au> <aidan-0404961557290001@meathook.intac.com> <pnoguchi-0404962135210001@pnoguchi.his.com> <4kv046$lg4@ionews.ionet.net> <4l51al$fb6@gjallar.daimi.aau.dk>
  9. NNTP-Posting-Host: 204.62.224.71
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. Peter Joachim Unold wrote:
  16. > Thus spake tconiam@ionet.net (Todd Coniam):
  17. > [cut of someone's praise of c++]
  18. > >--
  19. > >While experience in the commercial world has proven time and time again that
  20. > >programmers are not capable of capturing most bugs in the program when using
  21. > >C/C++ until well into the development.  C/C++ is inherently one of the most
  22. > >error prone languages around.  Dangling pointers and memory leaks are all
  23. > >slip into code much too easy, and are horrible to try and track down.  The
  24. > >folks at Purity Software(C) are making money hand over fist selling products
  25. > >that help with just these problems.  Perhaps you've heard of 'Purify'?
  26. > Sure we have. While dangling pointers can be a hell to find, I never understood
  27. > why memory leaks should be that horrible. Especially not in a language like
  28. > C++ where resource allocating/freeing can be dealt with in such a nice way.
  29. > (see Stroustrup's 'the c++ programming language').
  30. > Also providing your own global new/delete operators, which takes extra debug
  31. > arguments is quite easy.
  32.  
  33. There are many programming idioms that preclude stupid mistakes.  
  34. The point is that C++ gives you the freedom to do a great deal, 
  35. including hang yourself.  That freedom can be used to write 
  36. good, efficient programs too, don't forget.
  37.  
  38. > >If C++ is soo great why do most major developments severly limit the features
  39. > >that they allow used in the project.  Templates and multiple inheritance
  40. > Huh? What major C++ projects doesn't use templates? I can understand why
  41. > anyone wouldn't use the most advanced new features, but banning good old
  42. > ARM defined templates is just stupidity. As for MI, it depends entirely
  43. > on your design, wether you use it or not.
  44.  
  45. There are only rare circumstances in which multiple inheritance 
  46. is appropriate.  MI can be quite troublesome, so it stands to 
  47. reason that most C++ developers would avoid it.
  48.  
  49. > >(C++'s _great_ features) are usually the first to go.  Wouldn't you rather
  50. > >have the compiler tell you that your code is crap before you try and run it?
  51. > Sorry? C++ is a static checked language.
  52.  
  53. In other words, the compiler catches all sorts of things for us.
  54.  
  55. > >Try Ada 95, all the benefits of easy to understand syntax (you can read
  56. > >tommorow or next year!) with all the great object orientated features you want
  57. > >along with full multi-tasking in the language!
  58. > >Check out the web sites below and see for yourself.  You won't be sorry.
  59. > OK thanks. We'll all check it. But you'd be a better advocate of Ada 95 if you
  60. > provided us with some arguments of why Ada 95 is better, instead of stupid
  61. > c++ flames.
  62. > I've substituted your Ada 95 URL with an URL to the latest public ansi c++ draft.
  63.  
  64. Actually, your URL was to the April 1995 DWP.  Let's point him 
  65. to the January 1996 DWP instead:  
  66. http://www.bby.com.au/%7Egnb/wp/jan96/index.html
  67.  
  68. > There you can learn some more about the language before you flame the next time.
  69. >  best regards
  70. >    peter unold - pjunold@daimi.aau.dk
  71. > c++ draft: http://www.cygnus.com/misc/wp/draft/
  72.  
  73. -- 
  74. Robert Stewart        | My opinions are usually my own.
  75. Datalytics, Inc.    | stew@datalytics.com
  76.